import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant';
import 'vant/lib/index.css';
import Storage from '@/utils/StorageUtil'
import API from '@/utils/APIUtil'
import fetch from './utils/fetch'
import Tabbar from '@/components/Tabbar'
import NavBar from '@/components/NavBar'


//定义全局变量
Vue.prototype.Storage = Storage;
Vue.prototype.API = API;
Vue.prototype.$post = fetch.post
Vue.prototype.$get = fetch.get
Vue.prototype.$form = fetch.form

Vue.use(Vant)

Vue.config.productionTip = false

// 全局组件
Vue.component('Tabbar', Tabbar)
Vue.component('NavBar', NavBar)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
